{% extends "show_analysis.html" %}

{% block analysis_result %}

    <table class="table table-bordered result">
        <colgroup>
             <col width="12.5%">
             <col width="87.5%">
        </colgroup>
        <tr>
            <th class="success" colspan=2> Showing Analysis: {{ selected_analysis | replace_underscore}}</th>
        </tr>
        {% if firmware.processed_analysis[selected_analysis]['skipped'] %}
        <tr>
            <td class="warning">Analysis was skipped</td>
            <td class="active">{{ firmware.processed_analysis[selected_analysis]['skipped'] }}</td>
        </tr>
        {% endif %}
        {% if firmware.processed_analysis[selected_analysis]['analysis_date'] %}
        <tr>
            <td class="active">Time of Analysis</td>
            <td class="active">{{ firmware.processed_analysis[selected_analysis]['analysis_date'] | nice_unix_time }}</td>
        </tr>
        {% endif %}
        {% if firmware.processed_analysis[selected_analysis]['plugin_version'] %}
        <tr>
            <td class="active">Plugin Version</td>
            <td class="active">{{ firmware.processed_analysis[selected_analysis]['plugin_version']}}</td>
        </tr>
        {% endif %}
        {% if firmware.processed_analysis[selected_analysis]['system_version'] %}
        <tr>
            <td class="active">System Version</td>
            <td class="active">{{ firmware.processed_analysis[selected_analysis]['system_version']}}</td>
        </tr>
        {% endif %}
        {% if 'skipped' not in firmware.processed_analysis[selected_analysis] %}
            {% block analysis_result_details %}

            {% endblock %}
        {% endif %}
    </table>

    {% block ajax %}
    {% endblock %}
{% endblock %}
